package com.qf.fmall2203.shopcart.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 购物车 
 * </p>
 * "productName": "咪咪小虾条",
 * "productImg": "mmxt_1.png",
 * "skuName": "咪咪虾条 单包 50g",
 * "originalPrice": 2,
 * "sellPrice": 1,
 * "stock": 277
 * @author CM
 * @since 2023-02-16
 */
@Getter
@Setter
@TableName("shopping_cart")
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "cart_id", type = IdType.AUTO)
    private Integer cartId;

    /**
     * 商品ID
     */
    private String productId;

    /**
     * skuID
     */
    private String skuId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 购物车商品数量
     */
    private String cartNum;

    /**
     * 添加购物车时间
     */
    private String cartTime;

    /**
     * 添加购物车时商品价格
     */
    private BigDecimal productPrice;

    /**
     * 选择的套餐的属性
     */
    private String skuProps;


    @TableField(exist = false)
    private String productName;

    @TableField(exist = false)
    private String productImg;

    @TableField(exist = false)
    private String skuName;

    @TableField(exist = false)
    private Integer originalPrice;

    @TableField(exist = false)
    private Integer sellPrice;

    @TableField(exist = false)
    private Integer stock;



}
